<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title>Solicitar Coleta</title>
</h:head>
<h:body>

	<h:form id="fomSolicitacaoColeta">
	<p:panel id="panelSolicitacao" header="Solicitação de Coleta">
		
		<p:growl id="mensagemConfirmacao"/>
			<ui:include src="/cadastrocoleta/dadoscoleta.xhtml" />

			<ui:include src="/cadastrocoleta/dadosdestino.xhtml" />

			<ui:include src="/cadastrocoleta/dadosendereco.xhtml" />


			<p:commandButton value="Gravar" rendered="false"
				actionListener="#{solicitaColetaAction.salvarColeta}" />
		
		  
		  <p:commandButton value="Salvar" onclick="confirmation.show()" type="button"/>  
     
       
     <p:confirmDialog message="Confirma a gravação dos dados?" modal="true"  
                  hideEffect="explode"  
                 header="Confirmação" severity="alert" widgetVar="confirmation">  
                  
         <p:commandButton value="Sim" update="mensagemConfirmacao" oncomplete="confirmation.hide()"  
                     actionListener="#{solicitaColetaAction.salvarColeta}" />  
         <p:commandButton value="Não" onclick="confirmation.hide()" type="button" />   
                   
     </p:confirmDialog>
		  


		</p:panel>





	</h:form>




</h:body>
</html>